import java.io.File;
import java.io.IOException;

/**
 * @ClassName test
 * @Description TODO
 * @Author young
 * @Date 2022-11-10 17:29
 * @Version 1.0
 **/
public class test {
    public static void main(String[] args) throws IOException {

        File file = new File("D:", "11.txt");
        if (!file.exists()){
            file.createNewFile();
        }else{
            System.out.println("文件已存在");
        }
    }
}
